<script setup>
import { ref } from 'vue'

const count = ref(0)
const props = defineProps(['title'])
console.log(props.title)
</script>

<template>
  <button @click="count++">You clicked me {{ count }} times.</button>
  <template v-if="title">
  <h4>{{ title }}</h4>
</template>
</template>